<?php

use app\components\BaseGridView;
use app\models\ActivityApply;
use yii\helpers\Html;

?>


<?= BaseGridView::widget([
    'dataProvider' => $dataProvider,
    'filterModel' => $searchModel,
    'columns' => [
        //['class' => 'yii\grid\SerialColumn'],
        //['class' => 'yii\grid\CheckboxColumn', 'headerOptions' => ['width' => '5%']],
        'id',
        ['label' => '用户名', 'format' => 'raw', 'value' => function (ActivityApply $model) {
            return Html::a($model->uname, ['member/view', 'id' => $model->uid], ['class' => 'dialog']);
        }],
        ['label' => '电话', 'value' => function (ActivityApply $model) {
            return $model->phone;
        }],
        ['label' => '学校', 'value' => function (ActivityApply $model) {
            return $model->school;
        }],
        'ctime:datetime',
    ],
]); ?>
